package ro.gii.auctionHouse.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import ro.gii.auctionHouse.model.User;

public interface UserDAO extends JpaRepository<User, Integer> {
	
	//static final String GET_USERS_BY_ROLE = "select u from User u, IN(u.userRoles) r where r.role.code= :roleCode";

	public User findById(Integer id);
	public User findByLogin(String login);
	/*@Query(GET_USERS_BY_ROLE)
	public List<User> getUsersByRole(@Param("roleCode") String roleCode);*/

}
